<?php
class CommonApp
{
	public static function echoTest($model,$attr,$type,$content){
		$content = explode("#,",$content);
		foreach ($content as $v) {
			$data[$v] = $v;
		}
		if( $type == 1 )
		{
			return CHtml::activeRadioButtonList($model,$attr,$data);
		}elseif( $type == 2 )
		{
			return CHtml::activeCheckBoxList($model,$attr,$data);
		}elseif( $type == 3 )
		{
			return CHtml::activeCheckBoxList($model,$attr,$data);
		}elseif( $type == 4 )
		{
			return CHtml::activeRadioButtonList($model,$attr,$data);
		}else{
			//throw new CHttpException(400,'参数错误.');
		}
		return false;
	}
	public static function echoTests(){
		
	}
}